[BUGFIX] Optimize memory consumption by fetching from \mysqli_result

Followup on #27