Use hashtable to store the uri shortcuts.

This leds in easier code and faster shortcut lookup.