Note that getLocalFile() can cause a full file download in some cases. But since you mentionned the other day that versions are stored locally, it won't happen. So this should be ok.