Avoid calling the session fetch anonymous function