Optimized libkgw binary