add clear method variant when set of all inserted keys is known