Reuse the result of WM_keyconfig_active instead of calling it for every keymap while reconfiguring keymaps.