How can we optimize our APM database that is growing larger very quickly?