Prepare statement just before execution