Small refactorings in RH add()/put() and benchamaks