Fix #995: Parallelize Incremental Optimizer

Declare this directly as a `val` with a function value, so that it is only allocated once. (Otherwise it is allocated once per `parent` in `existingParents`).