ensure cipher memory safety

If no second cipher part is received, the cipher can be overwritten since it is just a slice from the net buffer