To support retryable writes that execute statements as transactions, when refreshing a retryable write from storage, we scan the session catalog for the highest txnNumber for that session. Scanning the catalog locks it, so we should optimize this scan to leverage the changes from SERVER-62479 to store all child sessions with their parent to either only scan those children or to scan no sessions by caching the highest txnNumber of any child directly with each parent session.