def METHOD_NAME(self) -> int:
    if self._cached_alt_cost is not None:
        return self._cached_alt_cost
    # ALT used by TransactionStepFromAccount, TransactionStepFromAccountNoChainId which have 6 fixed accounts
    acc_cnt = len(self._account_list) + 6
    if acc_cnt > ALTLimit.max_tx_account_cnt:
        self._cached_alt_cost = 5000 * 12  # ALT ix: create + ceil(256/30) extend + deactivate + close
    else:
        self._cached_alt_cost = 0
    return self._cached_alt_cost