Cache the dictionary.