Optimization of DAG2 + code for worker threads framework (Windows only)