Refactor to provide better hint of memory claims to VM.