Plugins shouldn't manually touch the LocalDataCache, as stated by the documentation. Also made some small changes.