Revert "Caching java expressions"

This reverts commit b96c09c20a1f53c0ca5e9ef1c77016255647226b.