Processes are described for producing solid or semi solid compositions in particular solid oral compositions for pharmaceutical use comprising treating an enzyme or enzyme mixture with lipase activity and a surfactant component at defined process parameters. Said processes are suited for diminishing undesired biological contamination e.g. viral contamination of the said enzyme or enzyme mixture while maintaining its desired biological activities e.g. enzymatic activities. The process is suitable for industrial use. Also described are solid or semi solid compositions comprising an enzyme or enzyme mixture having lipase activity a surfactant component and a polymeric additive optionally comprising further auxiliaries. Said compositions can preferably be obtained by the processes as described herein. Further described are pharmaceutical compositions comprising the solid or semi solid compositions as described herein.