Added pipeline to redis writes for faster writes