FED-115: Fix deserialization speed of legacy object stream classes by performing the lookups only once (instead on each deserialization run).