Use DI to set context. Server side check to prevent expensive query.