There is no federal prohibition. Some examiners however say that if there is a license in file, they will ensure that it was not used on a prohibited basis.
At banks I have been at the information used to identify a person was kept in a CIP file rather than in a loan file. It is the easiest way.
_________________________
Integrity. With it, nothing else matters. Without it, nothing else matters.