Caching java expressions