Rewrite plugin to depend on block data values instead of database.