Production mode class caching

If I wanted to do something funky along the lines of dynamically changing a call to an extenal routing module from within routes.rb based on the incoming request domain... would routes.rb be cached when in production mode or will it be evaluated afresh for every request?