Refactored SecureString construction