First of all, this is not a question about prepared statements themselves I have already checked a couple of articles like this.
My questions are about performance concerns while I'm starting my app I want to prepare the standard statements and leave them open during the lifetime of the program like the DB connection itself.
So I have two questions.
If I leave them open and my program dies will they terminate as the DB connection drops or will still keep some place in the MySQL cache.
Is there a better approach to this or is this an evil plan.