A simple cache for Objects in Java (or Android)