sdiffstore implementation.