Identity-Based Encryption with (Almost) Tight Security in the Multi-instance, Multi-ciphertext Setting