get length, not use NULL when getSecureValue