It actually turned out that these changes didn't make a significant difference.

Revert "Cache value of cglobals when possible to improve performance."

This reverts commit 64bb4732b4609cd9790753588b8970bf0c30dbd5.
Redundant NOINLINE