controlling which slice is used in encryption and decryption
Modifications to allow spp