Clean up and use native crypto.