Reduce hdf5 resource consumption retrieving metadata.