Improved interface and instance compilation. Restored an optimization of the optimizer: up to 4x faster now.