Optimize slug generation

This change vastly improves the slug generation speed when there's
a lot of descriptions that have the same name.