smallHash: simplified and improved performance

Unchanged behaviour