_cache.h5_map replacement inside the for loop