Auto populate persistent IDs if not specified