Only decode value if necessary.