Extremely simple memoizing for async functions.