Whole file caching engine