UnitOptimizer: More performance improvements, the number of threads started was significantly reduced, instead they are reused as often as possible