Option to disable file perstistence?

I wonder if there is any option to disable creation of “data” folder used for persistence.
Situation looks like this:

  • embedded MQTT broker (hivemq-community-edition-embedded-2022.1)
  • everything related to persistence configured with “in-memory” mode at the “config.xml”

So everything which could be persisted is set to “in-memory”. Despite this, HiveMQ always creates a data folder which grow with (short) time up to 1,6 GB. “retained_messages” occupies the most space.

Is there any possibility to disable completely creation of “data” folder if it is not used in case of “in-memory” persistence? If not maybe there is some option to reduce the reserved disk space?

Best regards