#2490: fixed problem with thread-safety in RegressionTreeModel using a different (local) caching tactic.