Cache JSON to avoid re-parsing on every usage.