I think that this is still needed.  It is the function that other tasks call.  It does the _sftp_get_file operation straight if sudo is not used, and copies to a readable temp file if sudo is specified.