Allow more flexible heap config for ES