implement 'cache-expressions' configuration parameter promised in the javadoc. sync javadoc with code.