Added method for reusing prepared statements.