Fixes #4492: generate policies only one time when accepting multiple nodes