in reply to Speaking between Perl and C
Take a look at Inline::C :)
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
This would be only the first step. The second would be to have more than one Perl process doing the actual work of data retrieving. The Perl backend should work as repository.