Replace found_rows logic for improved performance on larger sites.