Cache_redis: Optimizations.