Store report cache using buffer

SQLite doesn't detect the binary even if stored in BLOB if the type is not
buffer.

issue2704
review1941002