add a cache to speed up URI mapping