small optimization when setting date header