Generate MermaidJS graphs faster

After implementing support for light/dark themed MermaidJS graphs in my CI engine of choice , I was pretty happy with the solution. But after a few more months of iterating on drafts through my deployment chain I got tired of the time it took &ndash; often more than 5 minutes per build! Time to fix that.