Optimized history navigation