I see no reason why that solution would not work, however, the overhead- looping all domains/elements, hashing them, then doing a key->value lookup- might not be worth the processing power. Good solution and worth looking into though!
No comments yet.