speed up hdf5 performance in standard R functions.