Differential regulation of cytokine production and cytolysis in effector and memory T cells after viral infection