Inject memoryCache into Autoloader. Remove recursion-prevention hack.
Only use autoloader cache when 'instanceid' is available.
Only write-back on cache miss.
Allow null as cache parameter (if no cache was found) and for cache removal.