Improve hashtable update