Only decode if necessary