Fixing redis issue and optimizations with head requests