LPS-40053 Optimize ScriptData to use List to do internal state managemen...

...t