EZP-20491: eZScriptMonitor - memory limit overflow

Implemented batched attribute removal. needs corresponding change in ezpublish.