PDMWorks only goes to the vault for actual file retrieval. For file comparison, you can specify in the options whether the retrieved file is to be compared to what's in memory versus what's on disk.
On the other hand, the hierarchy for SolidWorks is RAM first, current working directory second, last known location third.