Pass optimizerContext as an options object