Separate resource routing and reuse route cache.

Signed-off-by: crynobone <crynobone@gmail.com>