This dict never changes but is recreated every time this function is called, it should be a module-/class-level constant instead.