Implementation of a cache layer using EHCACHE