Simplified AbstractCache class by removing the use of ThreadLocal. This
should fix #138