optimize for cache file size