Removed unused Task import and changed RecordCache to use Map instead of Object storage.