Adding caching support for routes loaded from yaml file and adding unit tests