using discrete prepared statements
optimize identical consecutive queries