Task execution optimization.