free memory on the fly in repodata_internalize