Optimize context switching slightly.