made memoize not cache empty results if we are in a transaction (since inside transactions we only get empty results...)