optimize native method exe class for typed native method