Quick housekeeping+query length assertion