Fixed problems with cache of blocks data. Changes in ranking data structure.