FIX: 2N+1 sql in admin /api/keys endpoint (PR #14679)

GitHub