Unfortunately there isn't. The files modified by rooting do not fix without a factory reset after unrooting. And with the Apps2SD update (MF9) I'm guessing you're trying to install, you're going to have to perform a factory reset anyway because of software issues that develop without doing one. Samsung's update process is VERY finicky about modified files and how many "updates/rom changes" the device has been through. XDA has a full breakdown of unrooting, resetting the update counter, and where to go from there.
Samsung Galaxy S® 4 MJA Rooted with CF Auto-Root Tutorial
HTC EVO Design 4G™ v4.0.3 Bootloader Unlocked & Rooted with HTC SuperTool v3
If it ain't broke, use a sledge hammer.