Don’t optimize prematurely - but have a plan how you’re going to do it.
With the services I write, a lot of the code may be clear, simple and
readable over actually optimizing for speed. Sometimes, the difference
between that code, and the optimized code, is a short refactor.