Attempt to fix memory issues
Catch exceptions
Remove dictionary cache as its redundant