Remove unused hash keys