Have you considered a binary NTFS Sparse File?
That way you could store your data at a calculated offset [ID] into a file that you could quickly seek to to read back, but would not need to consume all the disk space for the IDs that do not have any associated data [K].
Using a database engine to store such massive quantities of basic integers seems to be the wrong tool for the job.