Improve common XML search
It is very common to use the search attribute for searching a ir.model record, ex: search="[('model', '=', 'sale.sale')]"
The bottleneck is that this generate a query each time when the result will most of the time not change if there is a result because XML can not delete records.
So I think we could have a cache per file parsed which store the result of the search.