Class GroupStmt for groupings caching