improved performance of pmt_locations_by_tax function