Yes, I agree this isn't the best approach. Although, I was able to figure out a solution!
It seems rather than getting caught up on the named query, it may have something to do with the memory tag. I removed the tag write completely and used the component itself to grab the data I needed. This in turn allowed me to perform the script on a single click.
I may have been asking too much for the script to handle in a timely manner.