Cache metadata in prepared for execute statments

Also using fixed sized buffers for metadata. This helps a lot
with ad hoc queries, but not as much as caching. :)