Curried withSessionCache.