LPS-48706 There is a large memory leak when deploying many plugins at once
Revert "LPS-48706 There is a large memory leak when deploying many plugins at once"

This reverts commit 3e85b403cbc5dc45f98b5adefc0149c30f50b1b2.
LPS-48706 Simpler fix