Implemented an in-memory duplicate key storage class.