I have the following code that deserializes byte arrays to Event objects but it is too slow for me. I have thousands of these Events and creating new input streams for each obje