On the dynamic programming approach for incentive constrained problems