Use streams when generating hashes of remote files

Improves performance of the hash function on backends that support streaming for fopen

cc @DeepDiver1975 @PVince81