• This problem could probably be more "cleanly" solved with a CLR object.

    Happy to help you knock one up if you'd like to go that route.