Partially off topic but…
Numbering only increments (n+1). Probably because it is also used to set a unix user and devs prefer to not re-use them (security reasons, leftovers, complexity determining numeration jumps…). I guess it is stored in Redis.
This also has some downsides when restoring apps from backup, the need to reconfigure related apps…