Optimized custom enchant command

Untested