That is all that is important. I don't care if I do something and it is not known, it is usually a need and not a do-gooder thing. A baby without formula, a mother without diapers... no need to go in and lay claim when all I really want to do is fill a need.
If they know, fine. But, if they don't, fine too.
Giving without the expectation of receiving is the way to go. (I've never given diapers though. ☺️)