One possibility to store data in a cell is by using TaggingRules. Like, e.g.,
CurrentValue[PreviousCell[], {TaggingRules, "mydata"}] = 42
It looks promising! Thank you Rolf! I thought TaggingRules can only be stored at the notebook level.
TaggingRules
-- you have earned Featured Contributor Badge
Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!