A dealer twice caught with stockpiles of drugs has been jailed after he thought it was an easy way to pay off his debts.