Optimize the seqlock implementation