Hi Yorman,
This is a great answer and I understand security really well, but as you said the WordPress community develops this was I would at least 60% of themes do this.
The tool your building seems the like the best approach and gives the most options.
Let me know when it’s out would be glad to test it.