disable the crypto restriction programmatically