Due to recent upgrades to MTK, it is now possible to do this for performance and retrieve the solution. Credit to @YingboMa.