Implement new shot name generation using a persistent index.