Build pid2vid structures only once, in Vid2Pid