elminiated unnecessary copy of input in Encrypt/Decrypt methods