cache childdata ptr to simplify code