Using EhCache to cache frequently used data retrieved from db.
Code Refactoring.