read small chunks instead of the whole file.