improve redis access