You may heard about "hashmaps", but you don't use the yet. I understand the big headache a gel script can be sometimes and specially when you are learning. But ... every time you create a script, you become more knowledgeable and better.
Why don't you try to code with "hashmaps"? It's advised to reduce the "core:set" usage and use whenever is possible hashmaps.
- It will improve performance due better memory JVM usage.
- You have to get used to it
This is a sample to show hashmap syntax/structure for GEL scripts:
<sql:query escapeText="false" var="getData">
select id id from inv_investments