improve basic ConstantTimeDS