The minimizing FS defensively reads files even for stat calls. This is necessary to report consistent file sizes for stat calls and for read calls that may minimize the file, thus changing its size.
This patch avoids reading files that are not to be minimized. This is more efficient in scenarios a non-minimized file is only stat-ed during dependency scan and never open-ed.
Depends on D114966.