Made cache oracles thread-safe