Use cpp for static id gen