change the current O(n) lookup to O(1) based on the machinery described in "How To Write Shared Libraries" (Appendix B).