Optional listener added to CipherStream class.