Generated each time.  It could certainly be cached in a val, it would be a significant change to the reverse router though.  I'd say that's a premature optimisation, the cost of creating a new map from hard coded literals is negligable, compared to say, the fact that the router is running hundreds of regular expressions for every single route.