Optimization: Parse all programs once, instead of once per round.