Improve performance when consuming queues from redis