Why am I getting KM Engine Logs about Local Variables?

So what happens if the total of all variables, including Local variables, exceeds 100K while a macro is running?

I have a macro that is exporting data from the KM log (via shell script), filtering it with JXA, then opening the results in BBEdit. Should I be doing all of that with files instead of KM Variables?