Sir Alastair Cook and Ryan ten Doeschate used their vast experience with half-centuries as Essex claimed a first-innings lead in their LV= Insurance County Championship fixture against Warwickshire.