improve query parsing performance a small amount