Index stored devices by unique id to avoid naming conflicts.