Roundtrip a file to cache.