Less unnecessary internal calls.

Not only does this make the function a tiny bit faster but also gives us
better debug info as we should have more "locals".