Sheng's code for prototype Java version of DataCache