Use a static counter to generate ids for cached objects since they are a source of variability and should not impact transacted objects.  Exclude all changes to cached objects from the transcation log.