The solution to this is to provide free health care outside of prison too. If someone needs something so desperately they're willing to give up their freedom to get it, the richest nation in history ought to be able to provide it for them.
Some people will. Some people will do any damn thing. The real question is how many and will it be a significant enough portion to matter. My guess is no.