JSPUI - Fix to avoid db connection pool exhaustion for slow downloads and big files

https://jira.duraspace.org/browse/DS-2192