Added XOR key splitting