The Inside Java podcast episode on AOT caching covers the issue in this segment:
https://youtu.be/U2j4bKgKr-s?t=3577