DNN-4533 Optimize Performance of Files and Folders Tables and Procedures
merged in contributions from Sebastian's turboscript