Moved result unrolling to the thread local trampoline for stack safety.