[BUGFIX] Optimize memory consumption by fetching from \mysqli_result