Wrote file caching