Add pid to node table to avoid table scans