Assign appropriate memory size for certificate chain.