little optimization for less border crossing when rendering queries