optimize stonium generation