Optimize performance with 4 workers and 16 threads per worker.