Ok, introduced a BULK_WRITE for this (clearing can be quite expensive since it invokes listeners for every entry).