Parallelize tree-building, remove static wrappers that kill threads