Precompute snapshot length