As the other stated - Safe Boxes are for keeping valuables safe & cash is a vaulable.
SO - it is not illegal, but is unusual and should cause you to look a little further to see if (given other facts) it rises to the level Suspicious and reportable.
_________________________
My opinions are just that, and might be worth what you paid for them.