1. You could add "using (hash-value v)" in the iteration clause to directly have the value (no gethash).
2. There is maphash too.