Essex have tied Owais Shah and Ryan ten Doeschate to new deals as both prepare to leave for the Indian Premier League.