Added hashing for a grid to avoid multiple files for the same map