ReaderWriterLock optimization.