Delay setting cookies until we have to