I have no idea yet if it makes sense algorithmically, but the checks are quite slow. Might be worth it to investigate.