Optimize things along the main path.