Brute force is too slow