Avoid calls to get_transaction_id(), get_cookie() when possible.