read-from-disk is able to detect the maximum size of the read and modify the size dynamically