Accessing a mesh with write access can be costly if it is used elsewhere at the same time because of copy-on-write. When always did that at the end of the modifier calculation, but it's trivial to only do that when we might need actually use the mesh to add original index layers.