add total used count for debug
do not treat key exists as error as already doing in other place