Fix prepared statement caching bug.

It wasn't caching the prepared statement by keyspace, so if you
performed the same query on two different keyspaces, it would use
the prepared statement from the wrong keyspace and screw everything
up.