Optimize range fetching to fetch trailer after first request
Add function to log with elapsed time