I don't think this function is ever called.  if it was I would worry about whether something could be freed too early...

What is the lifetime of the cache?  Could the allocatorId wrap?  I think unlikely as ong as only used for a single job.