Convert from interface-based JNA mapping to direct-mapping for performance.