Concurrent queues optimization