fix concurrent modification exceptions in local cache