Micro-optimize task context switch.