Reverted the fetch all method used for the mysqli driver. mysqli::fetch_all required the mysqlnd to be installed and is also suggested that it has increased memory consumption.