Short circuiting expensive projection loop when it is not necessary