chore(api): cache the setup status to cut down DB access (#36966)