Unnecessary creation of objects when using cache Autodiscover type
Fix Total Time execution in debug.