Trying to plug memory leak by removing terracotta local cache