Add caching support so the YAML doesn't have to be parsed from scratch every load.