osQuery Management Server (Policy).SSH keys encrypted (SQLite SQL Statements)

SELECT 
  CASE 
    WHEN NOT EXISTS (
      SELECT 1
      FROM users
      CROSS JOIN user_ssh_keys USING (uid)
      WHERE encrypted = '0'
    ) THEN 'true' 
    ELSE 'false' 
  END AS policy_result;