Avoid reading image from disk during test time

I want to load all test data in one shot at one place before start predicting ,then fetch that data from memory during prediction,
Currently test data is read a from disc which eats up the time.
I m using fai 0.7 .
Please suggest which class should be used with an exaple