Revert "made xor use less memory"

This reverts commit 8ee1406983d45e4e9c3fd6987be36efd018da70b.