Changing the way we read the file to avoid the need to open/close it.