Improve private download of documents