Add cache to size operation.
Refactor parallel sum of subtrees.
Introduce filtering on parallel bulk sum.