optimized workbook build based on timestamps