Only raise on missing secret key after a route is defined