In fact, this was even easier than that.  putMemoryMulti just calls putMemory inside a loop, so after a successful put inside the goroutine, I'll just put the object at that time.  It's more efficient this way too.  The only way I'd see we could want to optimize further is to not have to lock/unlock the cache lock while looping, but I think the overhead of that is minimal.