Storing an Optional runs contrary to its usual role and wastes
memory. We can simply calculate the optional and have a nullable
internal field, saving ~16 bytes per codec instance.
Change-Id: I184fbd8f390bf5703b3342a6dd09de599c236554 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>