Caching for JDK 7