Code optimization - cache local variables

By this tremendous effort, we've saved 64 bytes of code section!