Optimize workflow