Speed up NormalizedNodeSchemaUtils.detectCase()