avoid opening *.dict.yaml multiple times when converting the dictionary.