Fixed algorithm context cache issue by removing the cache manager local reference