Just like any other secretion, Smegma is also another body secretion. It is made up of oil and dead cells.
Uncleaned smegma can cause unpleasant odour and also irritation in the genitals. Since it is made up of oil sometimes water may not completely clean it, hence soap is a necessary.
Next Steps
Treat this secretion just like other secretion of the body and regularly clean genital parts to keep it in a hygienic state.
circumcision of the fore skin can also help you to solve this problem permanently.
Health Tips
I think you may agree with me that spirituality is more in mind rather than body.