Enables a cache system.
Does refactor the code from DAOs and Managers.