Page table query builder optimization