Caching files to local disk now works properly