Implemented route caching.