Lower memory usage by hashing strings aggressively