Flash service - Fix access to inexistant index

Modify the type of messages storage