Optimized cache and compression