Explain how you would optimize a slow-running Node.js process that is bottlenecked by CPU-intensive tasks.