Move the cached statements higher up in the connection object so it gets destroyed after the worker is done