The XOR solution won't work if you have as much fluctuation in your bytes as you report.