How optimize RAM usage for huge byte arrays in java Environment: Java 17, Spring boot 3.2.4, Apache Tomcat by default G1 by default