Only build titlesToIds once.