use spawn for decrypting as well