I was also wondering about using a sequence generator, but it would still have to do something similar when the app starts.