Support for caching remote files that we download