Improve speed for big uploads:

First appeared as GH #1092 on Dancer (1).
reflect speed
Merge branch 'feature/speed-improvement'