Performance optimizations - foreign key indexes were created, OpenStructs were replaced with Hashes.