memoize plugin functions