Performance improvements to queues dynamically changed