protect against long queries