The database system holds all information about sequences in the sequence cache.
You can use the special database parameter SEQUENCE_CACHE to configure the size of the sequence cache.
See also:
Concepts of the Database System, Special Database Parameters