Bernie Madoff might be close to an example; his scheme kept going for an _amazingly_ long time, and he made some effort at times to reduce inflow to keep it somewhat under control. There was probably a world in which it only came out after he died; as it was he was kind of unlucky with the timing.
Of course, there might be plenty of optimally greedy criminals out there, and you’ll never know; more or less by definition they do not get caught.