enhances serialization for execution trees with a high depth