Cache mysql connection