It takes orders of magnitude longer than doing an exact match. If there is a cheaper "ends with" operation that would be better.