Use pid2vid for creating VTableReplicatedValues
Build pid2vid structures only once, in Vid2Pid