[enh] use 'is' to test against None instead of ==
[enh] switched from x86 cleanse hack to SecureString