hdf5 files are garbage collected as soon as the datasets are read to avoid the "too many open files" error