Optimized GetRouteByName function.