thread safe when recycling the entity cache