Fix reference iteration mask
Added authentication support for redis
Reuse a single redis connection