Improve normalize_name performance