Encrypts traffic when required by the server (session or share) or when SmbConfig.preferEncryption is enabled and the server supports SMB 3.x encryption.