A long-term epigenetic memory switch controls bacterial virulence bimodality