Lazily assign UUIDs.