See sample code in this blog post that makes use of a hash object: https://kansascode.blogspot.com/2021/06/creating-sample-data.html
How can this code be rewritten so that everything runs in a CAS session - all in memory - that is eliminate the hash object since we are already in memory?