prepare_cached needs to finish statement