Avoid ConcurrentModificationException when decrypting