$folded_id can be NULL