Only run the security middleware on boot