hopefully fixed the OutOfMemoryError and NevativeArraySizeException
Merge pull request #1 from grandcentrix/hotfix/diskBasedCacheCashes

hopefully fixed the OutOfMemoryError and NevativeArraySizeException