Help with Yanfly's Enemy Thief tutorial.(Tips and Tricks)

Because of how the code is run, the enemies can also steal my augments.(YEP_X_AttachAugments) because they aren't Key items. But I need to have my augments be regular items. The code looks for any valid items with .length which means it checks the ENTIRE item list. is there a way to limit how far the check can go?
To see the code, go to Yanfly.moe, click Tips and Tricks, and find Enemy Thief.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-yanflys-enemy-thief-tutorial-tips-and-tricks.114576/