Pesto can be made ahead of time and refrigerated for up to a week or even frozen in ice cube trays for several months.