Don't generate unique id unless necessary