Optimize `_.matches`.