SQLite is in fact faster than a filesystem for many workloads because you are essentially just reading from memory in userspace from database page cache, eliminating the kernel-crossing and copies that you have with filesystem system calls even when data is in kernel page cache.