3ginfo: speedup read and various fixes