removed aggressive heap and put extra memory allocation depending on the
operating system architecture