Simpler memory size calc, max ttl to 32bits