Added query caching for module configuration.