Much more efficient statement name generation.

This is a trivial change, but in a test in which I was creating 100,000 prepared statements, the ``getNextStatementName`` went from consuming 8.8% of the measured time to not even being registered by the profiler.