In the comments, I noted the performance of turning on UseCompactObject headers but this should be elevated to a subtask. Also these numbers were from before JDK-8339114 was fixed so may need to be redone.
https://bugs.openjdk.org/browse/JDK-8350457?focusedId=14765100&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14765100
https://bugs.openjdk.org/browse/JDK-8350457?focusedId=14765100&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14765100