Pull out caching of batches into `cache-batch`
Pull out caching of batches into `cache-batch`

This fixes compilation under Datomic Ions which seems to have a bit more on the
stack than usual when compiling.

wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom,wilkerlucio/pathom