Calculate target just once