fix N+1 query performance issues on TaxRate.match method