Added support for cached yaml config
YamlConfig does not cache if debug == true