Memoize using strong reference linked list and a weak reference dictionary.