Learning from ancient malaria pandemics