Lite java memory cache controll