Removed one of the duplicate size methods
Actually remove the entries from the memory cache
Fixed potential NPE found by Findbugs
Fixed a redundant String->Object->String with instanceof checks in between
Commented out a unused private method