zkPhoto Phase 1 improvement: double minting avoidance, gas reduction