Added uniqueId() method to OptimizerContext