mrb: don't optimize non indexed query