Introduced basic Cache system. It needs some testing though.