Added support for turning off prepared statements