Moved Cipher initialization