The solution is simple: when you get your CPL /ATPL the national CAA do the background checks and issue you with an ID.
In Germany you have to produce a so called ZÜP - certificate of reliability EVERY 2 years to keep your licence. The ZÜP is basically a check with every agency in Germany that is relavant for security, even the points you have on your driving licence are checked and evaluated. By a civil servant and with no strict rules, and you can`t appeal. (Democracy???)
Sometimes I think the real enemies of a law abiding, hard working citizen are....
So beware what you wish for....