Fetch all appconfig values for an app at once and cache the results

Saves some sql queries by both requesting multiple values at the same time and caching those values.

Saves about 15 sql queries when loading the files app for me

cc @DeepDiver1975 @PVince81 @karlitschek