Vaccine- and natural infection-induced mechanisms that could modulate vaccine safety