Enabled caching in configuration

This is done for two reasons:

1. Not using caching pollutes the logs.
2. Query-Caching < Caching. Even when AR caches the Querys the results have to be parsed and objectified.
fixed instance configuration caching

* moved condition into caller
* used  as  is initialized as empty hash