I would say that if you don't have the more efficient method memorized then just get it working then and can optimize later on such a trivial situation.
It's easier to write such trivial things from beginning. It's not really worth changing [set_]pev to entity_[g/s]et at later stages...