You'd need a test for every random chemical someone can use to get high. This story piqued my interest a few years ago because I didn't realize people got high off bug spray.
I think the best alternative solution is to get better e-books on the tablets the prisons already have, as airstrike said.
I think the best alternative solution is to get better e-books on the tablets the prisons already have, as airstrike said.