Yes, but data on the order of TBs is usually stored on platters (as opposed to SSD).
In that case, a fast data access library will not buy you much, because the disk will be slow anyway.
(By the way it is common that an in-memory database is combined with on-disk storage for large blobs; those blobs are just flat files, and the OS already offers the fastest way to access them without any library)