Smart caching proxy for S3