Initial hash generation (slow)