Memoize with any storages