Improving read/write operations to redis