Use complicated group search only when necessary