Found the spot where the code was slowing down.... On unencrypt there was a getItem method that was copying a list each time it was called. It was being called 100,000 times and copying the entire 100,000 item list each time, all to get the size of the list. In the data list I added a method to return just the list size, and it now runs quickly.