Memoize the mongo lookup

Memoize the mongo lookup. Since the session lookup is called on every single request, that operation can get very expensive on an ajaxy application.