Mass vaccination is not always the solution