context_processor by before_request seems best as compromise between app init and macrofor init