performance gain by not creating too many query objects