Unnecessary creation of objects when using cache Autodiscover type