What would be the best way to create an NPC/object that moves when not in the player's view?

Efficiency.