Spring Boot Reduce Memory Usage