> just like cache the filesystem in RAM
This has been implemented for ages now.
>then just have pointers to objects and store those in other objects
Pointer chasing can be pretty bad for performance. In many cases, you'd be better off with a local sqlite3.