@Emanuel_Huber , why dont you featurizer(embedding or one hot) your text data and store the data in binary format using numpy.memmap()  numpy.memmap — NumPy v1.21 Manual 2 . Then you can use the normal getitem method.