Looks like every time we resolve the content of a file we first open it to see for the file being binary or not before checking if the file has changed or not. We should always first check for the file not being modified to avoid reads on the file each time the file is opened.