But how about optimising the loading query?
I checked the query monitor and noticed that all pages load all custom meta box data even though they are not needed for the current page.
For example, I set up a custom meta box with data for a custom post type “Book”. I can see the custom meta box for “Book” is loaded with “update_meta_cache” on a normal page.