Enhancement of collisionless shock ion acceleration by electrostatic ion two-stream instability in the upstream plasma