memoize connection