Added preloading of total risk themas from metadata tables