There’s no free lunch. You will be taking additional risk by doing this even if the downside seems unlikely or remote.
If we assume 8% returns and you only put 50% in the stock market and your loan costs 2% interest then your total benefit is only 4%. Putting all of it might get you 6% but you are now taking a significant amount of risk.