added get caches
added DarkMallocs modification too
Merge pull request #1 from tihmstar/master

added get caches - merged from tihmstar.