Avoid reading a file handle into a file multiple times (as with fetching a fileref)