On larger scale multiplayer worlds this is going to be a huge issue.
But honestly with it being impossible to get most general enchants, prot, efficiency, unbreaking maxed.
It's just going to be an enderman or whatever good xp farm you want enchant a shit ton of books and just pick out the ones you want. Oh and I guess 1 swamp villagers.