Minor changes to prefix hashing

Based on discussion with genjix. Agreed this would be final.