Since GiD 16 the mesh is stored locally in each geometric entity, this allow several extra features, but also can become a big overhead of memory and CPU in some functions
Detach from geometry move all meshes distributed along geometric entities to a global container that is cheaper in resources.