Fix MySQL memory potential overuse.