As of Tridion Docs 15.2, we preserve the value for “Show optional fields” per user via user preferences
More details: https://community.rws.com/product-groups/tridion/tridion-docs/b/weblog/posts/community-ideas-in-the-latest-and-greatest-tridion-docs-15-2-release