cached(maxsize=32, typed=True)

Make function cached with LRU Cache.