improving caching of downloaded files