On startup, create an ID -> node map.