Out of curiousity, what are you attempting to accomplish? I'm asking this because this kind of solution smells like a solution to an XY problem. If you explain what you're attempting to do, we might be able to suggest a simpler solution to the actual problem.
My criteria for good software:
Does it work?
Can someone else come in, make a change, and be reasonably certain no bugs were introduced?