Fix #173 Speed up routing by caching latest matched routes