log collapse optimizations