Persisted id remapping