It would be better if trustedUsersMap owned the objects, by using MapStringToMyClass (which will release on remove)
Then you don't need separate expired array/manual release etc.