Compiled version of tyrant_optimize