Replaced array lookup with switch statement, which further improves performance to be almost unnoticeably different from the original UnsafeStringMap