Optimized getloginfo