Directly map field IDs to localized values

This change makes every localization lookup a simple map retrieval rather
than iterating the entire fields array each time.