OHAI-550: Reduce memory footprint of java in plugin