Tweaks to read files locally if possible.