Micro optimize generate_piece_checks() take 2