[BUGFIX] Decrease memory consumption by fetching records from \mysqli_result on demand, not upfront