A take to solve ATLASRECTS-6774.
This is a quick try to solve the issue in ATLASRECTS-6774.
As discussed in the JIRA the code as was will always do the detstore retrieval. Here via the static (c++11 static) these will be done once and only once for a "job". more or less like retrieving those in the initialize of an alg or tool etc.
Could work or not (we have CI issues) but even if not can give you some ideas.