Make optimization more deterministic.