I don't think there is any compelling argument for caching BDT trees. This change should avoid some redundant memory allocations, such as:
which I bumped into while looking at the derivation production jobs.
cc: @gemmeren @jcatmore