Here's a suggestion, perhaps disable logging globally..
I'm assuming in your query that you are using 30 records in your search?
Maybe replace that with not equal to 65 or 66, or something else of that nature that indicates that a user has not queryed anything or something like that?