having caching issues... using too much ram