private static byte[] joinQuartetsToBytes(byte[] quartets) {
        byte[] block = new byte[quartets.length / 2];
        for (int i = 0; i < quartets.length; i += 2) {
            block[i/2] = ByteHelper.joinBlocks(quartets[i], quartets[i + 1]);
        }
        return block;
    }