Improve using of memory at file reading for mswin