Move route cache to a CHI-like interface, in order to allow for custom cache modules