Plasticity in programming of effector and memory CD8 T-cell formation