speedup getLastLine of log file