If you're pathfinding to the same set of goal tiles, you can pathfind out from the goal to the agent. Nodes in the closed sets can be re-used between attempts to navigate to the same set of goals, because you already know their true distance from the closest goal.
Nodes still in the open set need to be re-scored with a new heuristic that takes into account their predicted distance from the agent - since now you're pathfinding toward a different agent.
If the agent's position is already in the closed set, you're already done, without doing any rescoring. You already discovered their shortest path to a goal in your previous queries.