The way results are captured may be suboptimal. Try restructuring so that results are captured but only relevant details are sent as input to states.