from typing import Set
import json


def _get_item_db(locale: str) -> Set[str]:
    """Fetches the item database for a given locale, with caching."""
    with open('items/%s.json' % locale, encoding='utf-8') as fp:
        return set(json.load(fp))