Reduce the memory usage of amrnb.js.