Unification of Sync and Storage APIs for file downloads