Instead of calling this directly to get the query plan, use new QueryOptimizer().optimize(). This will consider using an index table instead of the data table for each single query.