It seems like the custom code used within a Data Element is executed every time it is used in a page load and events. I feel that this could possible pain point for some custom code, especially if it is something that takes a long time to run. Couldn't the custom code be memorized in the _satellite?
Not sure I follow, but custom script contained in Data Elements should only be run when the DE is called. In other words, when you obtain the value of the Data Element that's returned by the custom code in the
My comment is about accessing a data element with with custom code will run that custom code each time.
Correct. If you want to avoid re-running your custom script on each access of the Data Element, on first run, you can assign the value(s) to a variable or object property and simply reference the variable or object property in subsequent uses.