Wrap ur1.shorten with functools.lru_cache()

Uses the functools32 package on Python 2.7.