Serialize correct object in component cache