memoize multiple methods simultaneously