I've finished the new DB layer for Roundcube based on PHP PDO. It uses less memory (1.2 MB less) and should be faster than our old solution. The main differences: uses PDO modules, no prepared statements.
Please, get 'pdo' branch and give it a try, so we could use this in 0.9.