Putting back in compact hash for mpi parallel version