Optimized caching of binary files