Optimize all loaded npcs