CanEncrypt field is not properly initialized