"An optimal market has 0 profit opportunities"
That doesn't quite right to me. A market with the smallest profit opportunity of a selection (say worse that government bonds) wouldn't see investment to correct that inefficiency. Zero may be 'best' case, practically speaking though no one's going to arbitrage an opportunity, that's less than the opportunity cost.
So it seems to me the optimal market would a profit opportunity somewhere between being the 2nd best profit opportunity and zero profit opportunity, depending what you set the opportunity cost at.