A 36-year-old female, known case of beta-thalassemia major, is set to undergo splenectomy. What is the ideal time for vaccination against encapsulated pathogens?