Performance improvements. session-cache is not in tmp. Improved change locks