improved perf regarding downloading file contents