Make Producer Cache thread-safe