Cache routes.rb in development?

My routes.rb files uses resources and building the routes for each
request takes a while. Is it possible to cache the routes during
development, like they do in production, but without caching everything
else?

Thanks for your help.