Read input in chunks
Size optimisation