LPS-46267 Optimize getPortletInstanceArchivedSettings()

/cc @izaera