Add caching to lookup_related_items