Execute get_magic once, and store the resulting value.

This avoids a deep recursion when MY_CXT.module is later accessed as referenced in #78