Optimize native cipher