Sharing db call reorder

At a customer, we saw the SQL query log full of ```SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'files_sharing' AND `configkey` = 'enabled'``` (several times in a row, probably for each file in a directory)