Prefer query text generation within entry_alloc