I have been working on this very large script. In order for it to not hit the homepage multiple times, I looped the script.
Is there a way the script can use new data from the data pool each time it loops?
This is the default behavior of datapools. Whether you've looped via Transaction for programatically, you need to move the GET_DATA() or READ_DATA_RECORD() function calls inside the loop.
A problem is a difference between what is perceived and what is desired, that
we want to reduce (Dewey 1933)