In any case, I would very much like to see an implementation of this.
[1] https://en.wikipedia.org/wiki/Layered_security